<template>
  <div class="h5-wrapper">
    <!-- 自定义导航栏 -->
    <div class="content" ref="content">
      <keep-alive>
        <router-view></router-view>
      </keep-alive>
    </div>

    <van-tabbar v-model="active" active-color="orange" inactive-color="#000">
      <van-tabbar-item icon="home-o" to="/home/article">面经</van-tabbar-item>
      <van-tabbar-item icon="goods-collect-o" to="/home/collect"
        >收藏</van-tabbar-item
      >
      <van-tabbar-item icon="like-o" to="/home/like">喜欢</van-tabbar-item>
      <van-tabbar-item icon="contact-o" to="/home/user">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "LayoutPage",
  components: {},
  data() {
    return {
      title: "面经列表",
      active: 0,
    };
  },
  created() {
    console.log("被创建时调用");
  },
};
</script>

<style>
body {
  margin: 0;
  padding: 0;
}
</style>
<style lang="less" scoped>
.h5-wrapper {
  .content {
    margin-bottom: 51px;
  }
}
</style>
